package relation;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("relation.xml");
		Address address2 = (Address)ctx.getBean("address2");
		System.out.println(address2);
		
		Person person = (Person)ctx.getBean("person");
		System.out.println(person);
	}
}